﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="TruckOrderPlan.aspx.cs" Inherits="Reports_TruckOrderPlan" Title="收貨計劃單" culture="auto" meta:resourcekey="PageResource5" uiculture="auto" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="myDiv" runat="server" class="divBgCover">
    </div>
    <div id="divError" runat="server" class="blue divActiveWindow">
        <table width="100%" align="center">
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <div class="title">
                                <asp:Label ID="Label2" runat="server" Text="托运人信息列表" 
                                    meta:resourcekey="Label2Resource1"></asp:Label></div>
                            <table class="add_table" cellspacing="1" cellpadding="3">
                                <tr>
                                    <td align="right">
                                        <asp:DropDownList ID="ddlColumnName" runat="server" 
                                            meta:resourcekey="ddlColumnNameResource1">
                                            <asp:ListItem Text="客户代码" Value="Code" meta:resourcekey="ListItemResource1"></asp:ListItem>
                                            <asp:ListItem Text="公司中文名" Value="CNName" meta:resourcekey="ListItemResource2"></asp:ListItem>
                                            <asp:ListItem Text="公司英文名" Value="ENGName" meta:resourcekey="ListItemResource3"></asp:ListItem>
                                            <asp:ListItem Text="公司台头" Value="Title" meta:resourcekey="ListItemResource4"></asp:ListItem>
                                            <asp:ListItem Text="公司业务员" Value="LocalBP" meta:resourcekey="ListItemResource5"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtName" runat="server" meta:resourcekey="txtNameResource1"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnShipperSel" runat="server" CssClass="btn" Text="搜索" 
                                            OnClick="btnShipperSel_Click" meta:resourcekey="btnShipperSelResource1" />
                                    </td>
                                </tr>
                            </table>
                            <div id="divEntrust" runat="server">
                                <div class="list_title">
                                    <div class="autoleft">
                                        <asp:Label ID="lblSelectOut" runat="server" Text="检索出" 
                                            meta:resourcekey="lblSelectOutResource1"></asp:Label>
                                        <asp:Label ID="lblTotal"
                                            runat="server" meta:resourcekey="lblTotalResource1"></asp:Label>
                                        <asp:Label ID="lblSelectOut2" runat="server" Text="个托运人" 
                                            meta:resourcekey="lblSelectOut2Resource1"></asp:Label></div>
                                    <div class="autoright">
                                        <asp:Label ID="lblPerPage" runat="server" Text="每页显示：" 
                                            meta:resourcekey="lblPerPageResource1"></asp:Label>
                                        <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" 
                                            OnSelectedIndexChanged="ddlPages_SelectedIndexChanged" 
                                            meta:resourcekey="ddlPagesResource1">
                                            <asp:ListItem Selected="True" Text="10" Value="10" 
                                                meta:resourcekey="ListItemResource6"></asp:ListItem>
                                            <asp:ListItem Text="15" Value="15" meta:resourcekey="ListItemResource7"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <asp:GridView ID="gvClientList" runat="server" AllowPaging="True" PageSize="5" AutoGenerateColumns="False"
                                    Width="100%" AllowSorting="True" OnPageIndexChanging="gvClientList_PageIndexChanging"
                                    OnSorting="gvClientList_Sorting" meta:resourcekey="gvClientListResource1">
                                    <PagerTemplate>
                                        <table style="width: 100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblPerPage" runat="server" Text="页次" 
                                                        meta:resourcekey="lblPerPageResource2"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label1" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>' 
                                                        meta:resourcekey="Label1Resource1"></asp:Label>/<asp:Label
                                                            ID="Label2" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' 
                                                        meta:resourcekey="Label2Resource2"></asp:Label><asp:Label
                                                                ID="lblPage" runat="server" Text="页" 
                                                        meta:resourcekey="lblPageResource1"></asp:Label>&nbsp;
                                                    <asp:Label ID="lblTotalPages" runat="server" Text="总计" 
                                                        meta:resourcekey="lblTotalPagesResource1"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label3" runat="server" 
                                                        Text="<%# ((System.Data.DataView)gvClientList.DataSource).Count %>" 
                                                        meta:resourcekey="Label3Resource1"></asp:Label>
                                                </td>
                                                <td align="right">
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="首页" meta:resourcekey="LinkButton1Resource1"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="前页" meta:resourcekey="LinkButton2Resource1"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="后页" meta:resourcekey="LinkButton3Resource1"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="尾页" meta:resourcekey="LinkButton4Resource1"></asp:LinkButton>&nbsp;
                                                    <asp:Label ID="lblTurnOn" runat="server" Text="转第" 
                                                        meta:resourcekey="lblTurnOnResource1"></asp:Label>
                                                    <asp:TextBox ID="txtPages"
                                                        runat="server" Width="35px" meta:resourcekey="txtPagesResource1"></asp:TextBox>
                                                    <asp:Label ID="lblPages2" runat="server" Text="页" 
                                                        meta:resourcekey="lblPages2Resource1"></asp:Label>
                                                    <asp:LinkButton ID="lbtnGo" runat="server" Text="提交" OnClick="lbtnGo_Click" 
                                                        meta:resourcekey="lbtnGoResource1"></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </PagerTemplate>
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择" meta:resourcekey="TemplateFieldResource1">
                                            <ItemTemplate>
                                                <input type="radio" name="chkSelected" 
                                                    value='<%# DataBinder.Eval(Container.DataItem,"PKID") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="客户代码" SortExpression="Code" 
                                            meta:resourcekey="TemplateFieldResource2">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCodes" runat="server" Text='<%# Eval("Code") %>' 
                                                    meta:resourcekey="lblCodesResource1"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(中文)" SortExpression="CNName" 
                                            meta:resourcekey="TemplateFieldResource3">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCNName" runat="server" Text='<%# Eval("CNName") %>' 
                                                    meta:resourcekey="lblCNNameResource1"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(英文)" SortExpression="ENGName" 
                                            meta:resourcekey="TemplateFieldResource4">
                                            <ItemTemplate>
                                                <asp:Label ID="lblENGName" runat="server" Text='<%# Eval("ENGName") %>' 
                                                    meta:resourcekey="lblENGNameResource1"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="业务员" SortExpression="LocalBP" 
                                            meta:resourcekey="TemplateFieldResource5">
                                            <ItemTemplate>
                                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("LocalBP") %>' 
                                                    meta:resourcekey="lblTypeResource1"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <RowStyle HorizontalAlign="Center" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnShipperSel" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSub" runat="server" Text="提交" CssClass="btn" 
                        OnClick="btnSub_Click" meta:resourcekey="btnSubResource1" />&nbsp;&nbsp;<asp:Button
                        ID="btnClose" CssClass="btn" runat="server" Text="返回" 
                        OnClick="btnClose_Click" meta:resourcekey="btnCloseResource1" />
                    <asp:HiddenField ID="hidAdminID" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="lblError" runat="server" Visible="False" Text="请选择一个托运人!" 
                        ForeColor="Red" meta:resourcekey="lblErrorResource1"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div id="myDivVendor" runat="server" class="divBgCover">
    </div>
    <div id="divVendor" runat="server" class="blue divActiveWindow">
        <table width="100%" align="center">
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <div class="title">
                                <asp:Label ID="lblVendorOInfo" runat="server" Text="工厂信息列表" 
                                    meta:resourcekey="lblVendorOInfoResource1"></asp:Label></div>
                            <table class="add_table" cellspacing="1" cellpadding="3">
                                <tr>
                                    <td align="right">
                                        <asp:DropDownList ID="ddlVendor" runat="server" 
                                            meta:resourcekey="ddlVendorResource1">
                                            <asp:ListItem Text="客户代码" Value="Code" meta:resourcekey="ListItemResource8"></asp:ListItem>
                                            <asp:ListItem Text="公司中文名" Value="CNName" meta:resourcekey="ListItemResource9"></asp:ListItem>
                                            <asp:ListItem Text="公司英文名" Value="ENGName" 
                                                meta:resourcekey="ListItemResource10"></asp:ListItem>
                                            <asp:ListItem Text="公司台头" Value="Title" meta:resourcekey="ListItemResource11"></asp:ListItem>
                                            <asp:ListItem Text="公司业务员" Value="LocalBP" 
                                                meta:resourcekey="ListItemResource12"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSelVendor" runat="server" 
                                            meta:resourcekey="txtSelVendorResource1"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnVendorSel" runat="server" CssClass="btn" Text="搜索" 
                                            OnClick="btnVendorSel_Click" meta:resourcekey="btnVendorSelResource1" />
                                    </td>
                                </tr>
                            </table>
                            <div id="div3" runat="server">
                                <div class="list_title">
                                    <div class="autoleft">
                                        <asp:Label ID="lblSearchOut" runat="server" Text="检索出" 
                                            meta:resourcekey="lblSearchOutResource1"></asp:Label>
                                        <asp:Label ID="lblVendorTotal"
                                            runat="server" meta:resourcekey="lblVendorTotalResource1"></asp:Label>
                                        <asp:Label ID="lblVendors" runat="server" Text="个工厂" 
                                            meta:resourcekey="lblVendorsResource1"></asp:Label></div>
                                    <div class="autoright">
                                        <asp:Label ID="lblPershow" runat="server" Text="每页显示：" 
                                            meta:resourcekey="lblPershowResource1"></asp:Label>
                                        <asp:DropDownList ID="ddlVendorPages" runat="server" AutoPostBack="True" 
                                            OnSelectedIndexChanged="ddlVendorPages_SelectedIndexChanged" 
                                            meta:resourcekey="ddlVendorPagesResource1">
                                            <asp:ListItem Selected="True" Text="10" Value="10" 
                                                meta:resourcekey="ListItemResource13"></asp:ListItem>
                                            <asp:ListItem Text="15" Value="15" meta:resourcekey="ListItemResource14"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <asp:GridView ID="gvVendorList" runat="server" AllowPaging="True" PageSize="5" AutoGenerateColumns="False"
                                    Width="100%" AllowSorting="True" OnSorting="gvVendorList_Sorting"
                                    OnPageIndexChanging="gvVendorList_PageIndexChanging" 
                                    meta:resourcekey="gvVendorListResource1">
                                    <PagerTemplate>
                                        <table style="width: 100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblPerPage" runat="server" Text="页次" 
                                                        meta:resourcekey="lblPerPageResource3"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label1" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>' 
                                                        meta:resourcekey="Label1Resource2"></asp:Label>/<asp:Label
                                                            ID="Label2" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' 
                                                        meta:resourcekey="Label2Resource3"></asp:Label><asp:Label
                                                                ID="lblPage" runat="server" Text="页" 
                                                        meta:resourcekey="lblPageResource2"></asp:Label>&nbsp;
                                                    <asp:Label ID="lblTotalPages" runat="server" Text="总计" 
                                                        meta:resourcekey="lblTotalPagesResource2"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label3" runat="server" 
                                                        Text="<%# ((System.Data.DataView)gvVendorList.DataSource).Count %>" 
                                                        meta:resourcekey="Label3Resource2"></asp:Label>
                                                </td>
                                                <td align="right">
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="首页" meta:resourcekey="LinkButton1Resource2"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="前页" meta:resourcekey="LinkButton2Resource2"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="后页" meta:resourcekey="LinkButton3Resource2"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="尾页" meta:resourcekey="LinkButton4Resource2"></asp:LinkButton>&nbsp;
                                                    <asp:Label ID="lblTurnOn" runat="server" Text="转第" 
                                                        meta:resourcekey="lblTurnOnResource2"></asp:Label>
                                                    <asp:TextBox ID="txtPages"
                                                        runat="server" Width="35px" meta:resourcekey="txtPagesResource2"></asp:TextBox>
                                                    <asp:Label ID="lblPages2" runat="server" Text="页" 
                                                        meta:resourcekey="lblPages2Resource2"></asp:Label>
                                                    <asp:LinkButton ID="lbtnGoVendor" runat="server" Text="提交" 
                                                        OnClick="lbtnGoVendor_Click" meta:resourcekey="lbtnGoVendorResource1"></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </PagerTemplate>
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择" meta:resourcekey="TemplateFieldResource6">
                                            <ItemTemplate>
                                                <input type="radio" name="chkVSelected" 
                                                    value='<%# DataBinder.Eval(Container.DataItem,"PKID") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="客户代码" SortExpression="Code" 
                                            meta:resourcekey="TemplateFieldResource7">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCodes" runat="server" Text='<%# Eval("Code") %>' 
                                                    meta:resourcekey="lblCodesResource2"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(中文)" SortExpression="CNName" 
                                            meta:resourcekey="TemplateFieldResource8">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCNName" runat="server" Text='<%# Eval("CNName") %>' 
                                                    meta:resourcekey="lblCNNameResource2"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(英文)" SortExpression="ENGName" 
                                            meta:resourcekey="TemplateFieldResource9">
                                            <ItemTemplate>
                                                <asp:Label ID="lblENGName" runat="server" Text='<%# Eval("ENGName") %>' 
                                                    meta:resourcekey="lblENGNameResource2"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="业务员" SortExpression="LocalBP" 
                                            meta:resourcekey="TemplateFieldResource10">
                                            <ItemTemplate>
                                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("LocalBP") %>' 
                                                    meta:resourcekey="lblTypeResource2"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <RowStyle HorizontalAlign="Center" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnVendorSel" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSubVendor" runat="server" Text="提交" CssClass="btn" 
                        OnClick="btnSubVendor_Click" meta:resourcekey="btnSubVendorResource1" />&nbsp;&nbsp;<asp:Button
                        ID="btnVendorBack" CssClass="btn" runat="server" Text="返回" 
                        OnClick="btnVendorBack_Click" meta:resourcekey="btnVendorBackResource1" />
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="lblVError" runat="server" Visible="False" Text="请选择一个工厂!" 
                        ForeColor="Red" meta:resourcekey="lblVErrorResource1"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div id="myDivWhouse" runat="server" class="divBgCover">
    </div>
    <div id="divWhouse" runat="server" class="blue divActiveWindow">
        <table width="100%" align="center">
            <tr>
                <td>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <div class="title">
                                <asp:Label ID="Label4" runat="server" Text="仓库信息列表" 
                                    meta:resourcekey="Label4Resource1"></asp:Label></div>
                            <table class="add_table" cellspacing="1" cellpadding="3">
                                <tr>
                                    <td align="right">
                                        <asp:DropDownList ID="ddlWhouse" runat="server" 
                                            meta:resourcekey="ddlWhouseResource1">
                                            <asp:ListItem Text="客户代码" Value="Code" meta:resourcekey="ListItemResource15"></asp:ListItem>
                                            <asp:ListItem Text="公司中文名" Value="CNName" meta:resourcekey="ListItemResource16"></asp:ListItem>
                                            <asp:ListItem Text="公司英文名" Value="ENGName" 
                                                meta:resourcekey="ListItemResource17"></asp:ListItem>
                                            <asp:ListItem Text="公司台头" Value="Title" meta:resourcekey="ListItemResource18"></asp:ListItem>
                                            <asp:ListItem Text="公司业务员" Value="LocalBP" 
                                                meta:resourcekey="ListItemResource19"></asp:ListItem>
                                        </asp:DropDownList>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtSelWhouse" runat="server" 
                                            meta:resourcekey="txtSelWhouseResource1"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:Button ID="btnWhouseSel" runat="server" CssClass="btn" Text="搜索" 
                                            OnClick="btnWhouseSel_Click" meta:resourcekey="btnWhouseSelResource1" />
                                    </td>
                                </tr>
                            </table>
                            <div id="div4" runat="server">
                                <div class="list_title">
                                    <div class="autoleft">
                                        <asp:Label ID="lblWhouseSearchOut" runat="server" Text="检索出" 
                                            meta:resourcekey="lblWhouseSearchOutResource1"></asp:Label><asp:Label
                                            ID="lblWhouseTotal" runat="server" 
                                            meta:resourcekey="lblWhouseTotalResource1"></asp:Label>
                                        <asp:Label ID="lblWhouses" runat="server" Text="个仓库" 
                                            meta:resourcekey="lblWhousesResource1"></asp:Label></div>
                                    <div class="autoright">
                                        <asp:Label ID="lblPerOagesWhouse" runat="server" Text="每页显示：" 
                                            meta:resourcekey="lblPerOagesWhouseResource1"></asp:Label>
                                        <asp:DropDownList ID="ddlWhousePages" runat="server" AutoPostBack="True" 
                                            OnSelectedIndexChanged="ddlWhousePages_SelectedIndexChanged" 
                                            meta:resourcekey="ddlWhousePagesResource1">
                                            <asp:ListItem Selected="True" Text="10" Value="10" 
                                                meta:resourcekey="ListItemResource20"></asp:ListItem>
                                            <asp:ListItem Text="15" Value="15" meta:resourcekey="ListItemResource21"></asp:ListItem>
                                        </asp:DropDownList>
                                    </div>
                                </div>
                                <asp:GridView ID="gvWhouseList" runat="server" AllowPaging="True" PageSize="5" AutoGenerateColumns="False"
                                    Width="100%" AllowSorting="True" OnSorting="gvWhouseList_Sorting"
                                    OnPageIndexChanging="gvWhouseList_PageIndexChanging" 
                                    meta:resourcekey="gvWhouseListResource1">
                                    <PagerTemplate>
                                        <table style="width: 100%">
                                            <tr>
                                                <td>
                                                    <asp:Label ID="lblPerPage" runat="server" Text="页次" 
                                                        meta:resourcekey="lblPerPageResource4"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label1" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>' 
                                                        meta:resourcekey="Label1Resource3"></asp:Label>/<asp:Label
                                                            ID="Label2" runat="server" 
                                                        Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' 
                                                        meta:resourcekey="Label2Resource4"></asp:Label><asp:Label
                                                                ID="lblPage" runat="server" Text="页" 
                                                        meta:resourcekey="lblPageResource3"></asp:Label>&nbsp;
                                                    <asp:Label ID="lblTotalPages" runat="server" Text="总计" 
                                                        meta:resourcekey="lblTotalPagesResource3"></asp:Label>:&nbsp;<asp:Label
                                                        ID="Label3" runat="server" 
                                                        Text="<%# ((System.Data.DataView)gvWhouseList.DataSource).Count %>" 
                                                        meta:resourcekey="Label3Resource3"></asp:Label>
                                                </td>
                                                <td align="right">
                                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="首页" meta:resourcekey="LinkButton1Resource3"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" 
                                                        Text="前页" meta:resourcekey="LinkButton2Resource3"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="后页" meta:resourcekey="LinkButton3Resource3"></asp:LinkButton>
                                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                                        Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                                        Text="尾页" meta:resourcekey="LinkButton4Resource3"></asp:LinkButton>&nbsp;
                                                    <asp:Label ID="lblTurnOn" runat="server" Text="转第" 
                                                        meta:resourcekey="lblTurnOnResource3"></asp:Label>
                                                    <asp:TextBox ID="txtPages"
                                                        runat="server" Width="35px" meta:resourcekey="txtPagesResource3"></asp:TextBox>
                                                    <asp:Label ID="lblPages2" runat="server" Text="页" 
                                                        meta:resourcekey="lblPages2Resource3"></asp:Label>
                                                    <asp:LinkButton ID="lbtnGoWhouse" runat="server" Text="提交" 
                                                        OnClick="lbtnGoWhouse_Click" meta:resourcekey="lbtnGoWhouseResource1"></asp:LinkButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </PagerTemplate>
                                    <Columns>
                                        <asp:TemplateField HeaderText="选择" meta:resourcekey="TemplateFieldResource11">
                                            <ItemTemplate>
                                                <input type="radio" name="chkWSelected" 
                                                    value='<%# DataBinder.Eval(Container.DataItem,"PKID") %>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="客户代码" SortExpression="Code" 
                                            meta:resourcekey="TemplateFieldResource12">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCodes" runat="server" Text='<%# Eval("Code") %>' 
                                                    meta:resourcekey="lblCodesResource3"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(中文)" SortExpression="CNName" 
                                            meta:resourcekey="TemplateFieldResource13">
                                            <ItemTemplate>
                                                <asp:Label ID="lblCNName" runat="server" Text='<%# Eval("CNName") %>' 
                                                    meta:resourcekey="lblCNNameResource3"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="公司简称(英文)" SortExpression="ENGName" 
                                            meta:resourcekey="TemplateFieldResource14">
                                            <ItemTemplate>
                                                <asp:Label ID="lblENGName" runat="server" Text='<%# Eval("ENGName") %>' 
                                                    meta:resourcekey="lblENGNameResource3"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="业务员" SortExpression="LocalBP" 
                                            meta:resourcekey="TemplateFieldResource15">
                                            <ItemTemplate>
                                                <asp:Label ID="lblType" runat="server" Text='<%# Eval("LocalBP") %>' 
                                                    meta:resourcekey="lblTypeResource3"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle HorizontalAlign="Center" />
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <RowStyle HorizontalAlign="Center" />
                                </asp:GridView>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnWhouseSel" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="btnSubWhouse" runat="server" Text="提交" CssClass="btn" 
                        OnClick="btnSubWhouse_Click" meta:resourcekey="btnSubWhouseResource1" />&nbsp;&nbsp;<asp:Button
                        ID="btnWhouseBack" CssClass="btn" runat="server" Text="返回" 
                        OnClick="btnWhouseBack_Click" meta:resourcekey="btnWhouseBackResource1" />
                    <asp:HiddenField ID="HiddenField2" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Label ID="lblWhouseError" runat="server" Visible="False" Text="请选择一个仓库!" 
                        ForeColor="Red" meta:resourcekey="lblWhouseErrorResource1"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="title">
        <asp:Label ID="lblTitle" runat="server" Text="收货计划单" 
            meta:resourcekey="lblTitleResource1"></asp:Label></div>
    <table class="add_table" cellspacing="1" cellpadding="3">
        <tr>
            <td align="right">
                <asp:Label ID="lblJobDate" runat="server" Text="收货日期：" 
                    meta:resourcekey="lblJobDateResource1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtJobDateFrom" runat="server" Width="20%" 
                    onkeydown="return pdDate(this,event);" 
                    meta:resourcekey="txtJobDateFromResource1"></asp:TextBox>-
                <asp:TextBox ID="txtJobDateTo" runat="server" Width="20%" 
                    onkeydown="return pdDate(this,event);" meta:resourcekey="txtJobDateToResource1"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator11" runat="server"
                    ControlToValidate="txtJobDateFrom" ValidationGroup="JobList" ErrorMessage="日期格式不正确"
                    
                    ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))" 
                    meta:resourcekey="RegularExpressionValidator11Resource1"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtJobDateTo"
                    ValidationGroup="JobList" ErrorMessage="日期格式不正确" 
                    ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))" 
                    meta:resourcekey="RegularExpressionValidator1Resource1"></asp:RegularExpressionValidator>
            </td>
            <td align="right">
                <asp:Label ID="lblShipperName" runat="server" Text="托运人 ：" 
                    meta:resourcekey="lblShipperNameResource1"></asp:Label>
            </td>
            <td>
              <table width="100%">
                            <tr>
                                <td rowspan="6" align="center">
                                    <asp:ListBox ID="lstShipper" runat="server" Width="100px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstShipperResource1" />
                                    <cc1:ListSearchExtender ID="ListSearchExtender2" runat="server" TargetControlID="lstShipper"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                                <td style="height: 2px">
                                </td>
                                <td rowspan="6" align="left">
                                    <asp:ListBox ID="lstSelShipper" runat="server" Width="100px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstSelShipperResource1">
                                    </asp:ListBox>
                                    <cc1:ListSearchExtender ID="ListSearchExtender4" runat="server" TargetControlID="lstSelShipper"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnAdd" runat="server" CssClass="btn" Text="添加" 
                                        onclick="btnAdd_Click" meta:resourcekey="btnAddResource1" />
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnDelete" runat="server" CssClass="btn" Text="刪除" 
                                        onclick="btnDelete_Click" meta:resourcekey="btnDeleteResource1" />
                                    <br />
                                </td>
                            </tr>
                        </table>
                <asp:HiddenField ID="hidshipperID" runat="server" />
                <asp:TextBox ID="txtshipperName" runat="server" Enabled="False" Visible="False" 
                    meta:resourcekey="txtshipperNameResource1"></asp:TextBox><asp:LinkButton
                    ID="lbtnSelect" runat="server" OnClick="lbtnSelect_Click" Text="选择" 
                    Visible="False" meta:resourcekey="lbtnSelectResource1"></asp:LinkButton>
            </td>           
        </tr>
        <tr>
            <td align="right" style="height:70px;">
                <asp:Label ID="lblVendorName" runat="server" Text="工厂名称 ：" 
                    meta:resourcekey="lblVendorNameResource1"></asp:Label>
            </td>
           <td>
                <table width="100%">
                            <tr>
                                <td rowspan="6" align="center">
                                    <asp:ListBox ID="lstVendor" runat="server" Width="200px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstVendorResource1" />
                                    <cc1:ListSearchExtender ID="ListSearchExtenderlstVendor" runat="server" TargetControlID="lstVendor"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                                <td style="height: 2px">
                                </td>
                                <td rowspan="6" align="left">
                                    <asp:ListBox ID="lstSelVendor" runat="server" Width="200px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstSelVendorResource1">
                                    </asp:ListBox>
                                    <cc1:ListSearchExtender ID="ListSearchExtenderlstSelVendor" runat="server" TargetControlID="lstSelVendor"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnVendorAdd" runat="server" CssClass="btn" Text="添加" 
                                        onclick="btnVendorAdd_Click" meta:resourcekey="btnVendorAddResource1" />
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnVendorDel" runat="server" CssClass="btn" Text="刪除" 
                                        onclick="btnVendorDel_Click" meta:resourcekey="btnVendorDelResource1" />
                                    <br />
                                </td>
                            </tr>
                        </table>
            </td>
            <td align="right" style="height:70px;">
                <asp:Label ID="lblWhoseName" runat="server" Text="仓库名称 ：" 
                    meta:resourcekey="lblWhoseNameResource1"></asp:Label>
            </td>
            <td>
              <table width="100%">
                            <tr>
                                <td rowspan="6" align="center">
                                    <asp:ListBox ID="lstWhse" runat="server" Width="100px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstWhseResource1" />
                                    <cc1:ListSearchExtender ID="ListSearchExtenderlstWhse" runat="server" TargetControlID="lstWhse"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                                <td style="height: 2px">
                                </td>
                                <td rowspan="6" align="left">
                                    <asp:ListBox ID="lstSelWhse" runat="server" Width="100px" 
                                        SelectionMode="Multiple" meta:resourcekey="lstSelWhseResource1">
                                    </asp:ListBox>
                                    <cc1:ListSearchExtender ID="ListSearchExtenderlstSelWhse" runat="server" TargetControlID="lstSelWhse"
                                        PromptCssClass="ListSearchExtenderPrompt" Enabled="True">
                                    </cc1:ListSearchExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnWhseAdd" runat="server" CssClass="btn" Text="添加" 
                                        onclick="btnWhseAdd_Click" meta:resourcekey="btnWhseAddResource1" />
                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Button ID="btnWhseDel" runat="server" CssClass="btn" Text="刪除" 
                                        onclick="btnWhseDel_Click" meta:resourcekey="btnWhseDelResource1" />
                                    <br />
                                </td>
                            </tr>
                        </table>  
            </td>           
        </tr>
        <tr>
         <td colspan="4" align="center">
                <asp:Button ID="btnSearch" runat="server" CssClass="btn" Text="查询" 
                    OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" />
                     &nbsp;
                    <asp:Button ID="btnEmail" runat="server" Text="Email" CssClass="btn" onclick="btnEmail_Click" />
            </td>
        </tr>
    </table>
    <div style="overflow: auto; width: 100%; height: 750px; padding: 1px;" runat="server"
        id="divReport">
        <rsweb:ReportViewer ID="rptViewer" runat="server" Width="100%" Height="700px" 
            Font-Names="Verdana" Font-Size="8pt" meta:resourcekey="rptViewerResource1">
        </rsweb:ReportViewer>
        <asp:Label ID="lblNoRecord" runat="server" Text="没有找到记录" Visible="False" 
            meta:resourcekey="lblNoRecordResource1"></asp:Label>
    </div>
</asp:Content>
